package pojo;

import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;

/**
 * Created by Administrator on 2017/3/29 0029.
 */
public class CodeParams {
    private String text;                //内容
    private String qrcodeFormat = "png"; //保存格式
    private String qrCodeUrl;          //网络路径
    private String filePath;           //生成物理路径
    private String fileName;           //生成图片名称（包含后缀名）
    private String logoPath;           //logo图片
    private Integer width = 300;           //宽度
    private Integer height = 300;          //高度
    private Integer onColor = 0xFF000000;  //前景色
    private Integer offColor = 0xFFFFFFFF; //背景色
    private Integer margin = 1;            //白边大小，取值范围0~4
    //二维码容错率 L = ~7% /M = ~15% /Q = ~25% /H = ~30% 容错率越高,二维码的有效像素点就越多
    private ErrorCorrectionLevel level = ErrorCorrectionLevel.L;

    public String getQrcodeFormat() {
        return qrcodeFormat;
    }

    public void setQrcodeFormat(String qrcodeFormat) {
        this.qrcodeFormat = qrcodeFormat;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getQrCodeUrl() {
        return qrCodeUrl;
    }

    public void setQrCodeUrl(String qrCodeUrl) {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getLogoPath() {
        return logoPath;
    }

    public void setLogoPath(String logoPath) {
        this.logoPath = logoPath;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Integer getOnColor() {
        return onColor;
    }

    public void setOnColor(Integer onColor) {
        this.onColor = onColor;
    }

    public Integer getOffColor() {
        return offColor;
    }

    public void setOffColor(Integer offColor) {
        this.offColor = offColor;
    }

    public Integer getMargin() {
        return margin;
    }

    public void setMargin(Integer margin) {
        this.margin = margin;
    }

    public ErrorCorrectionLevel getLevel() {
        return level;
    }

    public void setLevel(ErrorCorrectionLevel level) {
        this.level = level;
    }
}